-- GENERATED SPELL FOR [Foreman Marcrid] --


function spell0_1844(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1844', 658, 1)
end

function spell1_1844(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1844', 568, 1)
end

function Sorts_1844(pUnit, Event)
local choix_sorts_1844 = math.random(0, 1)
if choix_sorts_1844 == 0 then
pUnit:RegisterEvent('spell0_1844', 1, 1)
end
if choix_sorts_1844 == 1 then
pUnit:RegisterEvent('spell1_1844', 1, 1)
end
end

function mob1844_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1844', math.random(1500, 3000), 1)
end

function mob1844_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1844_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1844_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1844, 1, 'mob1844_Action')
RegisterUnitEvent(1844, 2, 'mob1844_Leave')
RegisterUnitEvent(1844, 3, 'mob1844_Kill')
RegisterUnitEvent(1844, 4, 'mob1844_Die')
